from shapes import *
import time

world = TurtleWorld()
qqq = Turtle

def menu():
    print "1: Quadralateral"
    print "2: Triangle"
    print "3: Circle"
    print "4: Exit"
    print
    answer = raw_input("Please Choose a Number: ")
    return answer
    
def shapeOpt(option):
    if option == "1":
        print
        print "1-1: Square"
        print "1-2: Rectangle"
        print "1-3: Rhombus"
        print "1-4: Paralelogram"
        print
        answer = raw_input("Which quadralateral would you like? (Enter number-dash-number)")
        return answer
    elif option == "2":
        print
        print "2-1: Equalateral"
        print "2-2: Right"
        print "2-3: Isosceles"
        print "2-4: Scalene"
        print
        answer = raw_input("Which quadralateral would you like? (Enter number-dash-number)")
        return answer
    elif option == "3":
        print
        print "3-1: Full Circle"
        print "3-2: Half Circle"
        print "3-3: Quarter Circle"
        print "3-4: Custom Circle"
        print
        answer = raw_input("Which circle would you like? (Enter number-dash-number)")
        return answer
    elif option == "4":
        exit()
    else:
        print "Unrecognised Command"
        time.sleep(2)
        print
        print
        print
        print
        print "Error"
        time.sleep(1)
        print
        print
        print
        print
        print "Error"
        time.sleep(1)
        print
        print
        print
        print
        print "Emergency Shutdown Procedure Iniciated"
        time.sleep(5)
        exit()
        
def drawShape(t, optionII):
    if optionII == "1-1":
        size = input("How large do you want it? (In pixels) ")
        square(t, size)
        
def run(t):
    while True:
        opt = menu()
        shapeOpt(opt)
        optII = shapeOpt(opt)
        drawShape(t, optII)
        
        
run(qqq)
wait_for_user()